package io.renren.modules.dishes.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import io.renren.common.utils.PageUtils;
import io.renren.modules.dishes.entity.CommoditySpuEntity;
import io.renren.modules.dishes.entity.SpuVo;


import java.io.IOException;
import java.util.Map;


public interface spuService extends IService<CommoditySpuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Boolean saveSpuVO(SpuVo spuVo) throws JsonProcessingException;

    SpuVo getVO(String spuId) throws IOException;

    Boolean updateSpuVO(SpuVo spuVo) throws JsonProcessingException;

    Integer deleteBatch(String[] spuIds);
}
